<%@taglib uri="/WEB-INF/struts-html.tld"  prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html:form action="quiz.do?action=quizAddUpdateSave">
    <table cellpadding="1" cellspacing="1" width="100%">
        <tr class="netral2">
            <td width="100%" colspan="2"><bean:message key="quiz.judul"/></td>
        </tr>
        <tr class="form">
            <td><bean:message key="quiz.judul"/></td>
            <td>: <c:out value="${titleQuiz.nama}"/></td>
        </tr>
        <tr class="form">
            <td><bean:message key="mapel.mapel"/></td>
            <td>: <c:out value="${titleQuiz.mataPelajaran.kode}"/> - <c:out value="${titleQuiz.mataPelajaran.nama}"/></td>
        </tr>
        <tr class="netral2">
            <td width="100%" colspan="2"><bean:message key="quiz.soal"/></td>
        </tr>
        <tr class="form">
            <td><bean:message key="quiz.pertanyaan"/></td>
            <td>: &nbsp;&nbsp; <html:text property="pertanyaan" size="100%"/></td>
        </tr>
        <tr class="form">
            <td><bean:message key="quiz.jawaban"/></td>
            <td>: a. <html:text property="jawabanA" size="75"/> <bean:message key="quiz.nilai"/> <html:text property="nilaiA" size="5"/></td>
        </tr>
        <tr class="form">
            <td>&nbsp;</td>
            <td>: b. <html:text property="jawabanB" size="75"/> <bean:message key="quiz.nilai"/> <html:text property="nilaiB" size="5"/></td>
        </tr>
        <tr class="form">
            <td>&nbsp;</td>
            <td>: c. <html:text property="jawabanC" size="75"/> <bean:message key="quiz.nilai"/> <html:text property="nilaiC" size="5"/></td>
        </tr>
        <tr class="form">
            <td>&nbsp;</td>
            <td>: d. <html:text property="jawabanD" size="75"/> <bean:message key="quiz.nilai"/> <html:text property="nilaiD" size="5"/></td>
        </tr>
        <tr class="form">
            <td>&nbsp;</td>
            <td>: e. <html:text property="jawabanE" size="75"/> <bean:message key="quiz.nilai"/> <html:text property="nilaiE" size="5"/></td>
        </tr>
        <tr class="form">
            <td colspan="2" align="right">
                <html:hidden property="pertanyaanId"/>
                <html:hidden property="jawabanIdA"/>
                <html:hidden property="jawabanIdB"/>
                <html:hidden property="jawabanIdC"/>
                <html:hidden property="jawabanIdD"/>
                <html:hidden property="jawabanIdE"/>
                <input type="button" onclick="validate_form_soal()" value="${buttonSave}"/>
            </td>
        </tr>        
    </table>    
</html:form>